﻿CREATE TABLE [dbo].[Multimedia_Local](
	[id_mult_local] [int] IDENTITY(1,1) NOT NULL,
	[id_local] [int] NULL,
	[ruta] [nvarchar](250) NULL,
	[carpeta] [nvarchar](100) NULL,
	[id_tipo_de_arch] [int] NULL,
	[descripcion] [nvarchar](250) NULL,
	[encriptado] [nvarchar](50) NULL,
 CONSTRAINT [PK_Multimedia_Local] PRIMARY KEY CLUSTERED 
(
	[id_mult_local] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  ForeignKey [FK_Multimedia_Local_Local]    Script Date: 11/12/2012 16:56:27 ******/
ALTER TABLE [dbo].[Multimedia_Local]  WITH CHECK ADD  CONSTRAINT [FK_Multimedia_Local_Local] FOREIGN KEY([id_local])
REFERENCES [dbo].[Local] ([id_local])
GO

ALTER TABLE [dbo].[Multimedia_Local] CHECK CONSTRAINT [FK_Multimedia_Local_Local]
GO
/****** Object:  ForeignKey [FK_Multimedia_Local_TipoDeArchivo]    Script Date: 11/12/2012 16:56:27 ******/
ALTER TABLE [dbo].[Multimedia_Local]  WITH CHECK ADD  CONSTRAINT [FK_Multimedia_Local_TipoDeArchivo] FOREIGN KEY([id_tipo_de_arch])
REFERENCES [dbo].[TipoDeArchivo] ([id_tip_archivo])
GO

ALTER TABLE [dbo].[Multimedia_Local] CHECK CONSTRAINT [FK_Multimedia_Local_TipoDeArchivo]